import { ref } from "vue";
import { useRoute, useRouter } from "vue-router";

export function useTitle() {
    const route = useRoute();

    const title = ref("useMixin");

    if (route.meta && route.meta.title) {
        title.value = route.meta.title as string;
    }
    return { title };
}
